﻿package frEngine.render.layer.uiEffectLayer
{
    import baseEngine.basic.*;
    import baseEngine.core.*;

    public class UIEffectRenderList extends RenderList
    {
        public var layerid:int;

        public function UIEffectRenderList(param1:int)
        {
            this.layerid = param1;
            return;
        }// end function

        override public function removeFromList(param1:Mesh3D) : Layer3DSort
        {
            var _loc_3:int = 0;
            var _loc_4:int = 0;
            var _loc_2:* = super.removeFromList(param1);
            if (!_loc_2)
            {
                return _loc_2;
            }
            if (_loc_2.list.length == 0)
            {
                _loc_3 = _loc_2.layerId;
                _loc_4 = layers.indexOf(_loc_2);
                if (_loc_4 != -1)
                {
                    layers.splice(_loc_4, 1);
                }
                delete layMap[_loc_3];
            }
            return _loc_2;
        }// end function

    }
}
